(0) Obligation:

Runtime Complexity TRS:
The TRS R consists of the following rules:

or(true, y) → true
or(x, true) → true
or(false, false) → false
mem(x, nil) → false
mem(x, set(y)) → =(x, y)
mem(x, union(y, z)) → or(mem(x, y), mem(x, z))

Rewrite Strategy: INNERMOST

(1) RenamingProof (EQUIVALENT transformation)

Renamed function symbols to avoid clashes with predefined symbol.

(2) Obligation:

Runtime Complexity Relative TRS:
The TRS R consists of the following rules:

or(true, y) → true
or(x, true) → true
or(false, false) → false
mem(x, nil) → false
mem(x, set(y)) → ='(x, y)
mem(x, union(y, z)) → or(mem(x, y), mem(x, z))

S is empty.
Rewrite Strategy: INNERMOST

(3) SlicingProof (LOWER BOUND(ID) transformation)

Sliced the following arguments:
mem/0
set/0
='/0
='/1

(4) Obligation:

Runtime Complexity Relative TRS:
The TRS R consists of the following rules:

or(true, y) → true
or(x, true) → true
or(false, false) → false
mem(nil) → false
mem(set) → ='
mem(union(y, z)) → or(mem(y), mem(z))

S is empty.
Rewrite Strategy: INNERMOST

(5) TypeInferenceProof (BOTH BOUNDS(ID, ID) transformation)

Infered types.

(6) Obligation:

Innermost TRS:
Rules:
or(true, y) → true
or(x, true) → true
or(false, false) → false
mem(nil) → false
mem(set) → ='
mem(union(y, z)) → or(mem(y), mem(z))

Types:
or :: true:false:=' → true:false:=' → true:false:='
true :: true:false:='
false :: true:false:='
mem :: nil:set:union → true:false:='
nil :: nil:set:union
set :: nil:set:union
=' :: true:false:='
union :: nil:set:union → nil:set:union → nil:set:union
hole_true:false:='1_0 :: true:false:='
hole_nil:set:union2_0 :: nil:set:union
gen_nil:set:union3_0 :: Nat → nil:set:union

(7) OrderProof (LOWER BOUND(ID) transformation)

Heuristically decided to analyse the following defined symbols:
mem

(8) Obligation:

Innermost TRS:
Rules:
or(true, y) → true
or(x, true) → true
or(false, false) → false
mem(nil) → false
mem(set) → ='
mem(union(y, z)) → or(mem(y), mem(z))

Types:
or :: true:false:=' → true:false:=' → true:false:='
true :: true:false:='
false :: true:false:='
mem :: nil:set:union → true:false:='
nil :: nil:set:union
set :: nil:set:union
=' :: true:false:='
union :: nil:set:union → nil:set:union → nil:set:union
hole_true:false:='1_0 :: true:false:='
hole_nil:set:union2_0 :: nil:set:union
gen_nil:set:union3_0 :: Nat → nil:set:union

Generator Equations:
gen_nil:set:union3_0(0) ⇔ nil
gen_nil:set:union3_0(+(x, 1)) ⇔ union(nil, gen_nil:set:union3_0(x))

The following defined symbols remain to be analysed:
mem

(9) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
mem(gen_nil:set:union3_0(n5_0)) → false, rt ∈ Ω(1 + n50)

Induction Base:
mem(gen_nil:set:union3_0(0)) →RΩ(1)
false

Induction Step:
mem(gen_nil:set:union3_0(+(n5_0, 1))) →RΩ(1)
or(mem(nil), mem(gen_nil:set:union3_0(n5_0))) →RΩ(1)
or(false, mem(gen_nil:set:union3_0(n5_0))) →IH
or(false, false) →RΩ(1)
false

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(10) Complex Obligation (BEST)

(11) Obligation:

Innermost TRS:
Rules:
or(true, y) → true
or(x, true) → true
or(false, false) → false
mem(nil) → false
mem(set) → ='
mem(union(y, z)) → or(mem(y), mem(z))

Types:
or :: true:false:=' → true:false:=' → true:false:='
true :: true:false:='
false :: true:false:='
mem :: nil:set:union → true:false:='
nil :: nil:set:union
set :: nil:set:union
=' :: true:false:='
union :: nil:set:union → nil:set:union → nil:set:union
hole_true:false:='1_0 :: true:false:='
hole_nil:set:union2_0 :: nil:set:union
gen_nil:set:union3_0 :: Nat → nil:set:union

Lemmas:
mem(gen_nil:set:union3_0(n5_0)) → false, rt ∈ Ω(1 + n50)

Generator Equations:
gen_nil:set:union3_0(0) ⇔ nil
gen_nil:set:union3_0(+(x, 1)) ⇔ union(nil, gen_nil:set:union3_0(x))

No more defined symbols left to analyse.

(12) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
mem(gen_nil:set:union3_0(n5_0)) → false, rt ∈ Ω(1 + n50)

(13) BOUNDS(n^1, INF)

(14) Obligation:

Innermost TRS:
Rules:
or(true, y) → true
or(x, true) → true
or(false, false) → false
mem(nil) → false
mem(set) → ='
mem(union(y, z)) → or(mem(y), mem(z))

Types:
or :: true:false:=' → true:false:=' → true:false:='
true :: true:false:='
false :: true:false:='
mem :: nil:set:union → true:false:='
nil :: nil:set:union
set :: nil:set:union
=' :: true:false:='
union :: nil:set:union → nil:set:union → nil:set:union
hole_true:false:='1_0 :: true:false:='
hole_nil:set:union2_0 :: nil:set:union
gen_nil:set:union3_0 :: Nat → nil:set:union

Lemmas:
mem(gen_nil:set:union3_0(n5_0)) → false, rt ∈ Ω(1 + n50)

Generator Equations:
gen_nil:set:union3_0(0) ⇔ nil
gen_nil:set:union3_0(+(x, 1)) ⇔ union(nil, gen_nil:set:union3_0(x))

No more defined symbols left to analyse.

(15) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
mem(gen_nil:set:union3_0(n5_0)) → false, rt ∈ Ω(1 + n50)

(16) BOUNDS(n^1, INF)